<template>
<div>
  <el-form :model="form">
    <el-form-item  label="编号:" >
      <el-input placeholder="请输入编号" v-model="form.id" size="small"/>
    </el-form-item>
    <el-form-item  label="名称:">
      <el-input placeholder="请输入名称" v-model="form.username" size="small"/>
    </el-form-item>
    <el-form-item label="电话:">
      <el-input placeholder="请输入电话"  v-model="form.phone" size="small"/>
    </el-form-item>
    <el-button @click="load()">加载</el-button>
  </el-form>
</div>
</template>

<script>
import request from '@/untils/request'
export default {
  name: "Person",
  data(){
    return{
      mess:[],
      form:{},
      user: localStorage.getItem("user")?JSON.parse(localStorage.getItem("user")):{}
  }
  },
  methods:{
   load(){
     //request.js需要重写方法
     request.get("user/").then(resp=>{ //http与https不同
       if(resp)
       {
         //请求成功了
       }
     });
   }
  },
  create(){

  },
}
</script>

<style scoped>

</style>